﻿/*
 * 
 * */

namespace AcctrueWMS.Foundation.Rule
{
    using AcctrueWMS.Foundation.Data;
    using System.Data;

    public interface IRuleEventProcessor
    {
        /// <summary>
        /// 判断是否符合规则
        /// </summary>
        /// <param name="row"></param>
        /// <returns></returns>
        bool ShouldWork(DataRow dataModel);

        /// <summary>
        /// 对符合规则的数据进行处理
        /// </summary>
        /// <param name="row"></param>
        /// <returns>处理标志</returns>
        int Process(DataRow dataModel);
    }
}
